#bin/bash

pid=`ps ax | grep -i 'beacon-config' | grep -v grep | awk '{print $1}'`
if [ -z "${pid}" ] ; then
        echo "No beacon-config running."
        exit -1;
fi

echo "The beacon-config(${pid}) is running..."

kill ${pid}

echo "Send shutdown request to beacon-config(${pid}) OK"